export const PAGE_CODE = 'dcs-parts-partSaleOrder';
import {PAGE} from '../constants';
import moment from 'moment';
export const PERMISSION = {
    export: 'export',
    confirm: 'confirm',
    add: 'add',
    assistAdd: 'assistAdd',
    update: 'update',
    assistUpdate: 'assistUpdate',
    submit: 'submit',
    assistSubmit: 'assistSubmit',
    abandon: 'abandon',
    assistAbandon: 'assistAbandon',
    import: 'import',
    return: 'return'
};
const lastWeek = [
    moment()
        .subtract(6, 'day')
        .startOf('day'),
    moment().endOf('day')
];
export const DEFAULT_QUERY_OPTION = {
    code: '',
    dealerCode: '',
    dealerName: '',
    typeId: '',
    status: [],
    createTime: lastWeek,
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
    sortField: 'createTime',
    isDesc: true
};
export const DEFAULT_SUBMIT_DATA = {
    details: []
};
export const STATUS_URL = {
    新增: 'add',
    编辑: 'update',
    代新增: 'assistAdd',
    代编辑: 'assistUpdate'
};
